package com.example;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p> 引导类 </p>
 * 这里的 @MapperScan 注解如果不指定 basePackages，那么所有的 service 接口也会被生成 MapperProxy 代理
 *
 * @author Chris
 * @since 2022/10/26 12:20
 */
@EnableAspectJAutoProxy
@SpringBootApplication
@MapperScan(basePackages = {"com.example.business.mapper", "com.example.tx.mapper"})
@EnableTransactionManagement
public class SpringBootMyTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootMyTestApplication.class, args);
    }

}
